package com.cc.ndmall.user.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * 
 * @author yang
 * @email 1369574042@qq.com
 * @date 2020-11-06 14:23:49
 */
@Data
@TableName("ndmall_user_formid")
public class UserFormidEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Integer id;
	/**
	 * 缓存的FormId
	 */
	private String formid;
	/**
	 * 是FormId还是prepayId
	 */
	private Integer isprepay;
	/**
	 * 可用次数，fromId为1，prepay为3，用1次减1
	 */
	private Integer useamount;
	/**
	 * 过期时间，腾讯规定为7天
	 */
	private Date expireTime;
	/**
	 * 微信登录openid
	 */
	private String openid;
	/**
	 * 创建时间
	 */
	private Date addTime;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	/**
	 * 逻辑删除
	 */
	private Integer deleted;

}
